const BASE_URL = "http://152.136.185.210:7878/api/hy66"
export const myRequest = (obj) => {
	return new Promise((res, rej) => {
		uni.request({
			url: BASE_URL + obj.url,
			method: obj.method || 'GET',
			data: obj.data || {},
			success: reson => {
				if (reson) {
					console.log("请求成功")
				}
				res(reson)
			},
			fail: err => {
				uni.showToast({
					title:"请求数据失败"
				})
				rej(err)
			}
		})
	})
}
